home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Misc
/
FLM
/
otherfiles
/
english
/
ARexx
/
auto.rexx
next >
Wrap
OS/2 REXX Batch file
|
2000-01-01
|
794b
|
43 lines
/*
Script which proves FLM capabilites for automatic translation.
This script translates all of the given words.
*/
arguments=Arg() /* Number of given arguments */
if arguments = 0 then
do
say "Give a word, please!!!"
exit
end
options results
address FLM
do i=1 to words(arg(1)) /* do as long as there are words in the given string */
wort = word(Arg(1),i) /* 1., 2., 3. ... word */
say "Searching" wort
lookword wort
found /* Found? */
if result = 0 then
do
wordanz
anz=RESULT
say anz "Words were found"
do j=1 to anz
takeword j /* Take translations */
say RESULT
end
end
else
do
say "Word is not in dictionary"
takefound
say "Next similar word is" RESULT
end
say
end
exit /* Script ends */